package com.qbw.app.manager;

import com.qbw.app.request.impl.CommonRequest;
import com.qbw.app.request.impl.UserRequest;
import com.qbw.app.request.impl.VehicleRequest;

/**
 * @author QBW
 * @date 2019/8/29
 */
public class RequestManager {
    private static RequestManager sInstance;

    private CommonRequest mCommonRequest;
    private UserRequest mUserRequest;
    private VehicleRequest mVehicleRequest;

    private RequestManager() {
        mCommonRequest = new CommonRequest();
        mUserRequest = new UserRequest();
        mVehicleRequest = new VehicleRequest();
    }

    public static RequestManager getInstance() {
        if (sInstance == null) {
            synchronized (RequestManager.class) {
                if (sInstance == null) {
                    sInstance = new RequestManager();
                }
            }
        }
        return sInstance;
    }

    public CommonRequest getCommonRequest() {
        return mCommonRequest;
    }

    public UserRequest getUserRequest() {
        return mUserRequest;
    }

    public VehicleRequest getVehicleRequest() {
        return mVehicleRequest;
    }
}
